<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CKEditor with jQuery</title>
    <script src="https://cdn.ckeditor.com/4.16.0/standard/ckeditor.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>

<textarea id="myEditor"></textarea>
<button id="getDataBtn">获取数据</button>
<button id="setDataBtn">设置数据</button>

<script>
    // 初始化CKEditor
    CKEDITOR.replace('myEditor');
    
    // 使用jQuery操作CKEditor
    $('#getDataBtn').click(function () {
        var data = CKEDITOR.instances.myEditor.getData();
        alert(data);
    });
    
    $('#setDataBtn').click(function () {
        CKEDITOR.instances.myEditor.setData('<p>这里是新内容</p>');
    });
</script>

</body>
</html>
